﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MP/NTD_NoSlide.Master" AutoEventWireup="true"
    CodeBehind="NTDUpdate.aspx.cs" Inherits="TimViec.NTD.NTDUpdate" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 class="m_bottom20">
        Thay đổi thông tin tài khoản</h1>
    <div class="bg_white p_10 create-resume">
        <div class="instruction">
            Vui lòng nhập đầy đủ các thông tin dưới đây.
            <br />
            Những mục có dấu sao <span class="text_red">*</span> là bắt buộc.
        </div>
        <div class="danghoso">
            <h4>
                Thông tin đăng nhập</h4>
            <table cellpadding="0" cellspacing="10">
                <tr>
                    <td>
                        <strong>Email/LoginID</strong><span class="text_red">*</span>
                    </td>
                    <td>
                        <asp:Literal runat="server" ID="lbTenTaiKhoan"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Mật khẩu</strong><span class="text_red">*</span>
                    </td>
                    <td>
                        **********
                    </td>
                </tr>
            </table>
            <h4>
                Thông tin công ty</h4>
            <table cellpadding="0" cellspacing="10">
                <tr>
                    <td>
                        <strong>Tên công ty</strong><span class="text_red">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtTenCongTy" runat="server" Width="350px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Text="*"
                            ErrorMessage="Tên công ty" ControlToValidate="txtTenCongTy" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <strong>Sơ lược công ty</strong><span class="text_red">*</span>
                    </td>
                    <td>
                        <CKEditor:CKEditorControl ID="CKSoLuocCty" runat="server" Width="780px" Height="200px"></CKEditor:CKEditorControl>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Text="*"
                            ErrorMessage="Sơ lược công ty" ControlToValidate="CKSoLuocCty" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Số nhân viên</strong><span class="text_red">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtSoNhanVien" runat="server" Width="250px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" Text="*"
                            ErrorMessage="Số nhân viên" ControlToValidate="txtSoNhanVien" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Website</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtWebsite" runat="server" Width="250px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Logo công ty</strong>
                    </td>
                    <td>
                        <asp:FileUpload ID="FileUpLoad_Logo" runat="server" />
                        <asp:RegularExpressionValidator ID="ktraanhnho" runat="server" ErrorMessage="File không phải hình ảnh!"
                            ControlToValidate="FileUpLoad_Logo" ForeColor="Red" ValidationExpression="^([0-9a-zA-Z_\-~. :\\])+(.jpg|.JPG|.jpeg|.JPEG|.bmp|.BMP|.gif|.GIF|.png|.PNG)$"></asp:RegularExpressionValidator>
                        <span class="text_red">≦ 1MB</span>
                    </td>
                </tr>
            </table>
            <h4>
                Thông tin liên hệ</h4>
            <table cellpadding="0" cellspacing="10">
                <tr>
                    <td>
                        <strong>Tên liên hệ</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtTenLienHe" runat="server" Width="350px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Địa chỉ</strong><span class="text_red">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtDiaChi" runat="server" Width="350px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" Text="*"
                            ErrorMessage="Địa chỉ" ControlToValidate="txtDiaChi" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Quốc gia</strong><span class="text_red">*</span>
                    </td>
                    <td>
                        <asp:DropDownList ID="droQuocGia" runat="server" CssClass="select" Width="350px"
                            AutoPostBack="True" OnSelectedIndexChanged="droQuocGia_SelectedIndexChanged">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Tỉnh/Thành phố</strong><span class="text_red">*</span>
                    </td>
                    <td>
                        <asp:DropDownList ID="droTinh" runat="server" CssClass="select" Width="350px">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Điện thoại</strong><span class="text_red">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtDienThoai" runat="server" Width="350px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" Text="*"
                            ErrorMessage="Điện thoại" ControlToValidate="txtDienThoai" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Fax</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtFax" runat="server" Width="350px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Email Liên hệ</strong><span class="text_red">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtEmailLienHe" runat="server" Width="350px"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Sai định dạng Email"
                            ControlToValidate="txtEmailLienHe" ForeColor="Red" Text="*" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" Text="*"
                            ErrorMessage="Email liên hệ" ControlToValidate="txtEmailLienHe" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Người liên hệ</strong><span class="text_red">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtNguoiLienHe" runat="server" Width="350px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" Text="*"
                            ErrorMessage="Người liên hệ" ControlToValidate="txtNguoiLienHe" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Điện thoại liên hệ</strong>
                    </td>
                    <td>
                        <asp:TextBox ID="txtDienThoaiLienHe" runat="server" Width="350px"></asp:TextBox>
                    </td>
                </tr>                
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="btSave" runat="server" Text="Gửi đi" CssClass="button2" OnClick="btSave_Click" />
                        <asp:Button runat="server" ID="btCancel" Text="Hủy bỏ" CssClass="button2" 
                            onclick="btCancel_Click"/>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="Các trường có dấu (*) bắt buộc phải nhập"
        ShowMessageBox="True" ShowSummary="False" />
</asp:Content>
